package link.anyauto.weclass.common.vm;

import android.databinding.ObservableField;
import android.graphics.drawable.Drawable;
import android.view.View;

/**
 * Created by Administrator on 2017/2/21.
 */

public class AppBarVM {
    public ObservableField<Drawable> navLogo = new ObservableField<>();
    public ObservableField<String> title = new ObservableField<>();
    public ObservableField<String> subTitle = new ObservableField<>();
    public ObservableField<View.OnClickListener> navClick = new ObservableField<>();

    public AppBarVM() {}

    public AppBarVM(Drawable navLogo, String title, String subTitle) {
        this(navLogo, title, subTitle, null);
    }

    public AppBarVM(Drawable navLogo, String title, String subTitle, View.OnClickListener navClick) {
        this.navLogo.set(navLogo);
        this.title.set(title);
        this.subTitle.set(subTitle);
        this.navClick.set(navClick);
    }
}
